const go/types.invalidArg
22 uses
go/types (current package)
builtins.go#L218: check.errorf(x, code, invalidArg+"%s for built-in %s", x, bin.name)
builtins.go#L241: check.errorf(x, InvalidClear, invalidArg+"cannot clear %s: argument must be (or constrained by) map or slice", x)
builtins.go#L346: check.errorf(x, InvalidComplex, invalidArg+"arguments have type %s, expected floating-point", x.typ())
builtins.go#L433: check.errorf(x, InvalidDelete, invalidArg+"%s is not a map", x)
builtins.go#L437: check.errorf(x, InvalidDelete, invalidArg+"maps of %s must have identical key types", x)
builtins.go#L504: check.errorf(x, code, invalidArg+"argument has type %s, expected complex type", x.typ())
builtins.go#L546: check.errorf(arg0, InvalidMake, invalidArg+"cannot make %s: %s", arg0, err.format(check))
builtins.go#L575: check.error(argList[1], SwappedMakeArgs, invalidArg+"length and capacity swapped")
builtins.go#L600: check.errorf(a, InvalidMinMaxOperand, invalidArg+"%s cannot be ordered", a)
builtins.go#L612: check.errorf(a, MismatchedTypes, invalidArg+"mismatched types %s (previous argument) and %s (type of %s)", x.typ(), a.typ(), a.expr)
builtins.go#L780: check.errorf(arg0, BadOffsetofSyntax, invalidArg+"%s is not a selector expression", arg0)
builtins.go#L795: check.errorf(x, MissingFieldOrMethod, invalidArg+"%s has no single field %s", base, sel)
builtins.go#L802: check.errorf(arg0, InvalidOffsetof, invalidArg+"%s is a method value", arg0)
builtins.go#L806: check.errorf(x, InvalidOffsetof, invalidArg+"field %s is embedded via a pointer in %s", sel, base)
builtins.go#L874: check.errorf(x, InvalidUnsafeSlice, invalidArg+"%s is not a pointer", x)
builtins.go#L896: check.errorf(x, InvalidUnsafeSliceData, invalidArg+"%s is not a slice", x)
builtins.go#L946: check.errorf(x, Test, invalidArg+"%s is not a boolean constant", x)
errors.go#L225: invalidArg = "invalid argument: "
index.go#L441: check.errorf(&x, InvalidIndex, invalidArg+"index %s out of bounds [0:%d]", x.val.String(), max)
index.go#L462: check.errorf(x, code, invalidArg+"%s %s must be integer", what, x)
index.go#L469: check.errorf(x, code, invalidArg+"%s %s must not be negative", what, x)
index.go#L475: check.errorf(x, code, invalidArg+"%s %s overflows int", what, x)